package com.gilight.base.service;

import com.gilight.base.model.SysPermission;

import java.util.List;
import java.util.Map;

public interface SysPermissionService {
    void add(SysPermission sysPermission);

    void updateStatus(Long id, Integer status);

    void edit(SysPermission sysPermission);
    List<SysPermission> getPermissionButton(Long id);
    List<SysPermission> getPermissionButtonByRoute(String id);
    List<Map<String,Object>> getRolePermissionButton(Long id, Long roleId);
    List<SysPermission> selectByParentId(Long id);
    SysPermission selectByRoute(String route);
    String queryUserDataRuleIds(String userCode,int permissionId);
}
